VtMessageDialog object_name [options]
Creates a dialog box containing a message and the default PushButtons OK, Cancel and Help. Returns the widget name of the dialog.
All the standard dialog options are also supported. To override the default buttons, the options -ok, -cancel, and -help can be used to specify which buttons go in the dialog. If any one of these options is used then it is assumed that only buttons which have been individually specified or referenced via either a label or a callback option will be put in the dialog.
If the user chooses either the OK or Cancel button, the dialog is automatically popped down and destroyed. To override this default use the -autoHide and -autoDestroy options.
The following code produces a Message dialog box containing an example message, an OK button and a Help button.
set app [VtOpen "Error Dialog Demo"] VtMessageDialog $app.demo -message \ "This is an example \nof VtMessageDialog" \ -ok \ -help VtShowDialog $app.demo VtMainLoop
This code produces the following:
See also: